import http from '@/utils/http';

const chat = {
  getChatLinks() {
    let url = '/admin/Chat/GetChatLinks';
    return http.get(url);
  },
  //发送消息
  sendMessage(sendMessageRequest: Object) {
    let url = '/admin/Chat/SendMessage';
    return http.post(url, sendMessageRequest);
  },
  getChatMessages(chatId: Number) {
    let url = '/admin/Chat/GetChatMessages';
    return http.get(url, { chatId });
  },
  addChatLink(employeeId: Number) {
    let url = '/admin/Chat/AddChatLink';
    return http.get(url, { employeeId });
  },
  setChatMessageToRead(chatId: Number) {
    let url = '/admin/Chat/setChatMessageToRead';
    return http.get(url, { chatId });
  },
};
export default chat;
